package com.young.springdemo.utils.domain;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @program: springdemo
 * @description 异常处理类
 * @author: Young
 * @create: 2020-05-29 15:17
 **/
@Data
@AllArgsConstructor
public class CodeMsg {
    private String status;
    private String errorcode;

    public static final String PARAM_EXCEPTION_STATUS = "参数异常";
    public static final String RED_PERSON_STATUS = "该用户为红名单人员";
    public static final CodeMsg SERVER_EXCEPTION = new CodeMsg("500","服务端异常");
    public static final CodeMsg PARAM_EXCEPTION = new CodeMsg("600","参数异常");
    public static final CodeMsg RED_PERSON = new CodeMsg("600","该用户为红名单人员");


}
